package com.zdlog.ler.service;

import com.zdlog.ler.Resp.object.ResponeMessage;
import com.zdlog.ler.entity.LerUser;
import com.zdlog.ler.util.TextUtil;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface LerUserService {

    /**
     * 获取用户信息
     * @param userId 用户id
     * @return 返回用户信息
     */
    LerUser findUserInfoByUserId(String userId);


    /**
     * 注册
     * @param lerUser  用户信息实体
     * @return  返回注册用户信息
     */
    ResponeMessage register(LerUser lerUser);


    /**
     * 登录
     * @param lerUser 用户信息实体
     * @return 返回注册用户信息
     */
    ResponeMessage login(HttpServletResponse response, LerUser lerUser);


    /**
     * 登出
     * @param request
     * @param response
     * @return
     */
    ResponeMessage logout(HttpServletRequest request, HttpServletResponse response);


    ResponeMessage sendEmail(LerUser lerUser);

}
